import { createPinia } from 'pinia'
//导入数据持久化插件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'     


const pinia = createPinia()

//注册数据持久化插件
pinia.use(piniaPluginPersistedstate)

export default pinia

//对modeules文件夹下的所有store进行统一导出
export * from './modeules/user'
